<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车辆注册</title>
<link href="/theme/comm/simpl.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="/theme/comm/base.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="/theme/jquery/ui-lightness/jquery-ui-1.10.3.custom.min.css" type="text/css" rel="stylesheet"
	media="screen" />
<script src="/js/comm/jquery/jquery-2.0.1.min.js"></script>
<script src="/js/comm/jquery/jquery.ui.core.js"></script>
<script src="/js/comm/jquery/jquery.ui.datepicker.min.js"></script>
<script>
 $(function() {
   $( "#registDate" ).datepicker();
 });
 </script>
</head>
<body class="Margin">
	<jsp:include page="/content/comm/header.jsp"></jsp:include>
	<div class="PageBackground">
		<div style="margin: 10px;">
			<span style="font-weight: bold;">表1 车辆注册登记表</span>
		</div>
		<form action="/sheets/vehicle-regist.do" method="post"
			enctype="multipart/form-data">
			<div>
				<table>
					<tr>
						<td>日期：</td>
						<td><s:textfield id="registDate" name="registDate"></s:textfield></td>
					</tr>
					<tr>
						<td>车牌号：</td>
						<td><s:textfield name="licensePlateNum"></s:textfield></td>
					</tr>
					<tr>
						<td>ID号：</td>
						<td><s:textfield name="deviceID"></s:textfield></td>
					</tr>
					<tr>
						<td>车载号：</td>
						<td><s:textfield name="carNum"></s:textfield></td>
					</tr>
					<tr>
						<td>所属车队：</td>
						<td><s:textfield name="motorcade"></s:textfield></td>
					</tr>
					<tr>
						<td></td>
						<td><s:submit id="searchBtn" name="search" method="search"
								value="Search"></s:submit></td>
					</tr>
				</table>
			</div>
			<div>
				<s:file id="spreadSheet" name="spreadSheet"></s:file>
				<s:submit id="uploadBtn" name="Upload" method="uploadSheet"
					value="Upload"></s:submit>
			</div>
		</form>
		<s:property value="outMessage" />
		<s:if test="outMessage!=''">
			<div>
				<table border="1">
					<tr>
						<s:iterator value="colHeaderList" var="chItem" status="st">
							<td
								<s:if test="!#chItem.isMatch">style="background-color:red;"</s:if>><s:property
									value="#chItem.columnName" /></td>
						</s:iterator>
					</tr>
				</table>
			</div>
		</s:if>
		<s:else>
			<div>
				<table border="1">
					<tr>
						<td>日期</td>
						<td>车牌号</td>
						<td>设备型号</td>
						<td>ID号</td>
						<td>车载号</td>
						<td>所属车队</td>
						<td>经办人</td>
						<td>安装员</td>
						<td>发动机号</td>
						<td>车架号</td>
						<td>车身颜色</td>
						<td>核定载质量 单位：T</td>
						<td>车辆类型</td>
						<td>车辆品牌及型号</td>
						<td>车主姓名</td>
						<td>车主电话</td>
						<td>车主身份证号码</td>
						<td>第二联系人 姓 名</td>
						<td>第二联系人 电 话</td>
						<td>所属公司</td>
						<td>备注</td>
					</tr>
					<s:iterator value="VehicleRegistList" var="vrItem" status="st">
						<tr>
							<td><s:date name="#vrItem.registDate" format="dd/MM/yyyy" /></td>
							<td><s:property value="#vrItem.licensePlateNum" /></td>
							<td><s:property value="#vrItem.deviceModelNum" /></td>
							<td><s:property value="#vrItem.deviceID" /></td>
							<td><s:property value="#vrItem.carNum" /></td>
							<td><s:property value="#vrItem.motorcade" /></td>
							<td><s:property value="#vrItem.agent" /></td>
							<td><s:property value="#vrItem.installer" /></td>
							<td><s:property value="#vrItem.engineNum" /></td>
							<td><s:property value="#vrItem.vin" /></td>
							<td><s:property value="#vrItem.vehicleColor" /></td>
							<td><s:property value="#vrItem.verifiedLoadQuality" /></td>
							<td><s:property value="#vrItem.vehicleType" /></td>
							<td><s:property value="#vrItem.brandAndModelNum" /></td>
							<td><s:property value="#vrItem.ownerName" /></td>
							<td><s:property value="#vrItem.ownerPhone" /></td>
							<td><s:property value="#vrItem.ownerIdCardNum" /></td>
							<td><s:property value="#vrItem.secondaryContact" /></td>
							<td><s:property value="#vrItem.secondaryContactNum" /></td>
							<td><s:property value="#vrItem.company" /></td>
							<td><s:property value="#vrItem.remarks" /></td>
						</tr>
					</s:iterator>
				</table>
			</div>
		</s:else>
	</div>
</body>
</html>
<script type="text/javascript">
	document.all.VehicleRegistTab.className += "ActiveTab";

	
</script>